﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt.TenderBond
{
    /// <summary>
    /// 保证金入账及退信息记录
    /// </summary>
    public class BZJ_Tender_Bond_Record : Entity
    {
        /// <summary>
        /// 所属保证金子账户
        /// </summary>
        public virtual BZJ_Sub_Account SubAccount { get; set; }

        /// <summary>
        /// 保证金记录中的投标人与项目关联记录（如果记录不为空，则表明已经关联）
        /// </summary>
        public virtual ref_ProjectAndEnterprise PE { get; set; }

        #region 入账明细信息
        /// <summary>
        /// 到账时间（*）
        /// </summary>
        public virtual DateTime InDateTime { get; set; }

        /// <summary>
        /// 到账金额（*）
        /// </summary>
        public virtual string InAmount { get; set; }

        /// <summary>
        /// 付款人行号
        /// </summary>
        public virtual string InBankNo { get; set; }

        /// <summary>
        /// 付款人行名
        /// </summary>
        public virtual string InBankName { get; set; }

        /// <summary>
        /// 付款人户名（*）
        /// </summary>
        public virtual string InName { get; set; }

        /// <summary>
        /// 付款人账号（*）
        /// </summary>
        public virtual string InAcct { get; set; }

        /// <summary>
        /// 收款账号（*）
        /// </summary>
        public virtual string InMemo { get; set; }

        /// <summary>
        /// 入账交易流水号（*）
        /// </summary>
        public virtual string HstSeqNum { get; set; }

        /// <summary>
        /// 当前利息（*）
        /// </summary>
        public virtual float PunInst { get; set; }

        /// <summary>
        /// 是否基本户
        /// </summary>
        public virtual int Gernal { get; set; }
        #endregion

        #region 退回标志及信息
        /// <summary>
        /// 退回原因
        /// </summary>
        public virtual string BackReason { get; set; }

        /// <summary>
        /// 退回类别（正常、异常）
        /// </summary>
        public virtual string BackType { get; set; }

        /// <summary>
        /// 转入本金金额（用于扣除服务费）
        /// </summary>
        public virtual decimal InTranAmt { get; set; }

        /// <summary>
        /// 退回结果标志
        /// -1：失败；1：成功；0：未进行操作
        /// </summary>
        public virtual int BackResultFlag { get; set; }

        /// <summary>
        /// 退回结果消息
        /// </summary>
        public virtual string BackResultMsg { get; set; }

        /// <summary>
        /// 退回时间
        /// </summary>
        public virtual DateTime BackResultDate { get; set; }

        /// <summary>
        /// 付款方式
        /// </summary>
        public virtual string PayType { get; set; }

        /// <summary>
        /// 货币类型
        /// </summary>
        public virtual string CurrencyType { get; set; }

        /// <summary>
        /// 货币单位
        /// </summary>
        public virtual string BondUnit { get; set; }

        /// <summary>
        /// 服务费是否到账
        /// </summary>
        public virtual int fwfIsIn { get; set; }

        /// <summary>
        /// 发票标志
        /// </summary>
        public virtual int fpFlag { get; set; }

        /// <summary>
        /// 服务费发票号码
        /// </summary>
        public virtual string fpCode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public virtual string Remark { get; set; }
        #endregion
    }
}
